<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BaseTable">

    <div class="layui-card-body padding-left-40">
        <label class="layui-form-item relative block">
            <span class="help-label"><b>商品ID</b></span>
            <input maxlength="500" class="layui-input" name="product_id" value='{$vo.product_id|default=""}'
                   vali-name="商品ID" placeholder="请输入商品ID">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>打折概率</b></span>
            <input maxlength="500" class="layui-input" name="forge_probability"
                   value='{$vo.forge_probability|default=""}'
                   vali-name="打折概率" placeholder="请输入打折概率">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>最小概率</b></span>
            <input maxlength="500" class="layui-input" name="min_probability" value='{$vo.min_probability|default=""}'
                   vali-name="最小概率" placeholder="请输入最小概率">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>最大概率</b></span>
            <input maxlength="500" class="layui-input" name="max_probability" value='{$vo.max_probability|default=""}'
                   vali-name="最大概率" placeholder="请输入最大概率">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>默认Spin金额</b></span>
            <input maxlength="500" class="layui-input" name="default_spin_amount"
                   value='{$vo.default_spin_amount|default=""}'
                   vali-name="默认Spin金额" placeholder="请输入默认Spin金额">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RtpBase</b></span>
            <input maxlength="500" class="layui-input" name="rtp_base" value='{$vo.rtp_base|default=""}'
                   vali-name="RtpBase" placeholder="请输入RtpBase">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>RtpCorr</b></span>
            <input maxlength="500" class="layui-input" name="rtp_corr" value='{$vo.rtp_corr|default=""}'
                   vali-name="RtpCorr" placeholder="请输入RtpCorr">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>CorrValue</b></span>
            <input maxlength="500" class="layui-input" name="corr_value" value='{$vo.corr_value|default=""}'
                   vali-name="CorrValue" placeholder="请输入CorrValue">
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>KBan</b></span>
            <input maxlength="500" class="layui-input" name="k_ban" value='{$vo.k_ban|default=""}'
                   vali-name="KBan" placeholder="请输入KBan">
        </label>

        <label class="layui-form-item relative block">
            <div class="help-label label--prev"><b>是否热门</b></div>
            <select class="layui-select" name="is_hot" lay-filter="SiteTheme">
                {foreach ['2'=>'非热门','1'=>'热门'] as $k=>$v}
                {if isset($vo.is_hot) and $vo.is_hot eq $k}
                <option selected value="{$k}">{$v}</option>
                {else}
                <option value="{$k}">{$v}</option>
                {/if}
                {/foreach}
            </select>
        </label>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消吗？" data-close>取消
        </button>
    </div>

</form>


<script>
    $('[name=image]').uploadMultipleImage();
</script>